home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / QuickDraw3D 1.6 SDK / Mac SampleCode New for 1.6 / WorldRayPickSample / Headers / WRay_Error.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-20  |  1.0 KB  |  63 lines  |  [TEXT/CWIE]

  1. /*  
  2.  *    WRay_Error.h
  3.  *
  4.  *    QuickDraw 3D 1.6 Sample
  5.  *    Robert Dierkes
  6.  *
  7.  *     07/28/98    RDD        Created.
  8.  */
  9.  
  10. #ifndef _HWRay_Error
  11. #define _HWRay_Error
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16.  
  17. #include <Types.h>
  18.  
  19. void    Error_Alert(    short        iconType,
  20.                         char        *pMessage);
  21.  
  22. Boolean Error_ShowMessage(
  23.                         short        resStringIndex);
  24.  
  25.     #if defined(USE_DEBUGGING)
  26.         #define        DEBUGGING    1
  27.     #else
  28.         #define        DEBUGGING    0
  29.     #endif
  30.  
  31.     #if defined(USE_DEBUGGING)  || defined(ERROR_DEBUG_STR)
  32.         #undef    ERROR_DEBUG_STR
  33.         #define    ERROR_DEBUG_STR(s)    debugstr(s)
  34.     #else
  35.         #define    ERROR_DEBUG_STR(s)
  36.     #endif
  37.  
  38.     #if defined(USE_DEBUGGING)
  39.         #define    DEBUG_ASSERT(x,f)    \
  40.             if ((x) == 0) {    \
  41.                 char    msg[256];    \
  42.                 sprintf(msg, "%s %s (%d): (%s)", __FILE__, #f, __LINE__, #x);    \
  43.                 debugstr(msg);        \
  44.             }
  45.     #else
  46.         #define    DEBUG_ASSERT(x,f)
  47.     #endif
  48.  
  49.     #if defined(SYSTEM_BEEP)
  50.         #undef    SYSTEM_BEEP
  51.         #define    SYSTEM_BEEP()    System_Beep()
  52.         #include "WRay_System.h"
  53.     #else
  54.         #define    SYSTEM_BEEP()
  55.     #endif
  56.  
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60.  
  61.  
  62. #endif /* _HWRay_Error */
  63.